<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>大事件</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- 引入layui.css -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css" media="all">
    <!-- 引入本页面的.css -->
    <link rel="stylesheet" href="/assets/css/article/article_cates.css">
</head>

<body>

    <div class="layui-card">
        <div class="layui-card-header">
            <span>文章分类</span>
            <button type="button" id="btnAddCate" class="layui-btn layui-btn-normal"
                style="border-radius: 4px;">添加分类</button>
        </div>
        <div class="layui-card-body">
            <table class="layui-table">
                <colgroup>
                    <!-- colgroup 里面的 col width表示每一行的宽度 -->
                    <col width="80">
                    <col width="350">
                    <col width="350">
                    <!-- 不写 就是自适应 -->
                    <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>分类名称</th>
                        <th>分类别名</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- <tr>
                        <td>贤心</td>
                        <td>2016-11-29</td>
                        <td>人生就像是一场修行</td>
                        <td>
                            <a class="layui-btn  layui-btn-sm" lay-event="edit">编辑</a>
                            <a class="layui-btn layui-btn-danger  layui-btn-sm" lay-event="del">删除</a>
                        </td>
                    </tr> -->
                </tbody>

            </table>
        </div>
    </div>

    <script type="text/html " id="tpl-table">
        <form class="layui-form" id="formAdd" action="">
            <div class="layui-form-item">
             <label class="layui-form-label"><span>*</span>分类名称: </label>
             <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
             </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span>*</span>分类别名: </label>
                <div class="layui-input-block">
                   <input type="text" name="alias" required  lay-verify="required" placeholder="请输入别名" autocomplete="off" class="layui-input">
                </div>
               </div>
               <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo" id="submit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
        </form>
    </script>

    <script type="text/html" id="tpl-amend">
            <form class="layui-form" id="dialog" action="" 
            lay-filter="dialog">
            <!-- 隐藏域 -->
            <input type="hidden" name="Id">
                <div class="layui-form-item">
                 <label class="layui-form-label"><span>*</span>分类名称: </label>
                 <div class="layui-input-block">
                    <input type="text" name="name" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
                 </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span>*</span>分类别名: </label>
                    <div class="layui-input-block">
                       <input type="text" name="alias" required  lay-verify="required" placeholder="请输入别名" autocomplete="off" class="layui-input">
                    </div>
                   </div>
                   <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                  </div>
            </form>
    </script>

    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/lib/dist/axios.min.js"></script>
    <script src="/assets/js/commit.js"></script>
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/js/article/article_cates.js"></script>
</body>

</html>